﻿<UserControl x:Class="MultipleMonitorVideo.Views.BaseControlView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:viewModels="clr-namespace:MultipleMonitorVideo.ViewModels"
             mc:Ignorable="d" d:DesignWidth="320">
    <UserControl.DataContext>
        <viewModels:BaseControlViewModel/>
    </UserControl.DataContext>
    <Grid Margin="0,10" HorizontalAlignment="Center">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <ComboBox Grid.Column="0" x:Name="SelectMonitor" HorizontalAlignment="Left" Width="120"
                  Margin="0 0 15 0"
                  ItemsSource="{Binding Screens}" DisplayMemberPath="DeviceName"
                  SelectedItem="{Binding SelectedScreen}" SelectedValuePath="DeviceName">
        </ComboBox>
        <Button Grid.Column="1" x:Name="SelectMonitorButton" Content="Enable This Module" Width="120"
                Style="{DynamicResource SquareButtonStyle}" HorizontalAlignment="Right"
                Command="{Binding SelectMonitorCommand}"/>
    </Grid>
</UserControl>
